package com.lw.entity;

import com.lw.common.vo.BasePageQuery;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

/**
 * 字典表 实体类。
 *
 * @author lw
 * @since 2025年05月17日 07:58:04
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "字典表")
@Table("tb_dict")
public class TbDict extends BasePageQuery implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键 
     */
    @Id(keyType = KeyType.Auto)
    @Schema(description = "主键 ")
    private Long id;

    /**
     * 类型编码
     */
    @Schema(description = "类型编码")
    private String dictCode;

    /**
     * 类型名称
     */
    @Schema(description = "类型名称")
    private String name;

    /**
     * 状态(0:正常;1:禁用)
     */
    @Schema(description = "状态(0:正常;1:禁用)")
    private Boolean status;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    @Column(onInsertValue = "now()")
    private LocalDateTime createTime;

    /**
     * 创建人ID
     */
    @Schema(description = "创建人ID")
    private Long createBy;

    /**
     * 更新时间
     */
    @Schema(description = "更新时间")
    @Column(onUpdateValue = "now()")
    private LocalDateTime updateTime;

    /**
     * 修改人ID
     */
    @Schema(description = "修改人ID")
    private Long updateBy;

    /**
     * 是否删除(1-删除，0-未删除)
     */
    @Schema(description = "是否删除(1-删除，0-未删除)")
    private Integer isDeleted;

}
